#ifndef _SLBZ_
#define _SLBZ_
#include "HardwareInfo.c"
#include "gotocode.c"
#include <SetOneServo.h>
#include <SetTenthS.h>
#include "delay.c"
extern unsigned char A1 ;
extern unsigned char A2 ;
extern unsigned char A3 ;
extern unsigned char A4;
extern unsigned char A5 ;
extern unsigned char A6 ;
extern unsigned char A7 ;
extern unsigned char park ;
extern unsigned char PLTime;
extern unsigned char g_lr;

extern unsigned long T1 ;
extern unsigned long T2 ;
extern unsigned long T6 ;
extern unsigned long T7 ;

void SLBZ(int LR, int speed)
{
    gotocode(30, -15);
    SetOneServo(_SERVOCTRL_ST_, 1, 31, 0);
    SetOneServo(_SERVOCTRL_ST_, 2, 75, 500);
    SetOneServo(_SERVOCTRL_ST_, 3, 110, 0);
    SetOneServo(_SERVOCTRL_ST_, 4, 55, 0);
    SetTenthS(4);
    gotocode(30, 13);
    delay(55, speed);
    if ( LR==0 )
    {
        SetOneServo(_SERVOCTRL_ST_, 4, 156, 20);
        SetTenthS(4);
        SetOneServo(_SERVOCTRL_ST_, 4, 46, 400);
        SetTenthS(4);
    }
    else
    {
        SetOneServo(_SERVOCTRL_ST_, 3, 34, 20);
        SetTenthS(4);
        SetOneServo(_SERVOCTRL_ST_, 3, 110, 400);
        SetTenthS(4);
    }
    SetOneServo(_SERVOCTRL_ST_, 1, 8, 20);
    SetTenthS(6);
    delay(-30, 35);
    SetTenthS(2);
    delay(70, speed);
    if ( LR==0 )
    {
        SetTenthS(5);
        SetOneServo(_SERVOCTRL_ST_, 1, 170, 0);
        SetOneServo(_SERVOCTRL_ST_, 4, 156, 500);
        SetTenthS(5);
        SetOneServo(_SERVOCTRL_ST_, 3, 33, 500);
        SetOneServo(_SERVOCTRL_ST_, 4, 63, 0);
        SetTenthS(10);
        SetOneServo(_SERVOCTRL_ST_, 4, 113, 0);
        SetTenthS(5);
    }
    else
    {
        SetTenthS(5);
        SetOneServo(_SERVOCTRL_ST_, 1, 170, 0);
        SetTenthS(10);
        SetOneServo(_SERVOCTRL_ST_, 3, 30, 300);
        SetTenthS(5);
        SetOneServo(_SERVOCTRL_ST_, 3, 100, 20);
        SetOneServo(_SERVOCTRL_ST_, 4, 150, 300);
        SetTenthS(5);
        SetOneServo(_SERVOCTRL_ST_, 3, 55, 400);
        SetTenthS(5);
    }
    SetOneServo(_SERVOCTRL_ST_, 3, 110, 0);
    SetOneServo(_SERVOCTRL_ST_, 4, 46, 0);
    SetOneServo(_SERVOCTRL_ST_, 1, 165, 800);
    SetTenthS(6);
    gotocode(35, -15);
    SetOneServo(_SERVOCTRL_ST_, 3, 10, 800);
    SetOneServo(_SERVOCTRL_ST_, 4, 180, 0);
    SetTenthS(3);
}
#endif

